Skip to content

[clang][cas] Work around -cc1 sandbox violations#12110

Merged
jansvoboda11 merged 1 commit intonextfrom
jan_svoboda/cas-cc1-sandbox
Mar 4, 2026
Merged

[clang][cas] Work around -cc1 sandbox violations#12110
jansvoboda11 merged 1 commit intonextfrom
jan_svoboda/cas-cc1-sandbox

Conversation

@jansvoboda11
Copy link

After llvm#174653, some CAS tests started failing with sandbox violations. This PR works around these.

The CompileJobCache::maybeIngestNonVirtualOutputFromFileSystem() function already contains this FIXME:

All consumers should adopt \c llvm::vfs::OutputBackend and this unction should go away.

So adding another FIXME for the sandbox disablement itself felt redundant.

The sandbox disablements around the dependency scanner server/daemon infrastructure are obviously not formal inputs/outputs of the compiler, so I didn't feel the need to mark those with FIXMEs or other comments.

However, the many sandbox disablements in cc1depscan_main.cpp make me question whether we should just disable sandbox once at the start of cc1depscan_main() and only re-enable it when entering into the scanner.

@jansvoboda11 jansvoboda11 force-pushed the jan_svoboda/cas-cc1-sandbox branch from 2e03cdf to c076b79 Compare March 4, 2026 16:43
@jansvoboda11 jansvoboda11 merged commit dd713ce into next Mar 4, 2026
@jansvoboda11 jansvoboda11 deleted the jan_svoboda/cas-cc1-sandbox branch March 4, 2026 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants